#!/bin/bash

echo "Compiling $1 with -fno-stack-protector -D_FORTIFY_SOURCE=0 -z execstack to $2"
gcc $1 -o $2 -g -fno-stack-protector -D_FORTIFY_SOURCE=0 -z execstack
echo "Finished with exploitable version"
echo "Compiling $1 with -g for debugging"
gcc $1 -o debug -g
echo "Finished with debug version"
